<template>
  <div class="lg-steps">
    <div class="lg-steps-line"></div>
    <div
      class="lg-sep"
      v-for="index in count"
      :key="index"
      :class="{'step-active': index===active}"
    >
      {{ index }}
    </div>
  </div>
</template>

<script>
export default {
  name: "LgSetps",
  props: {
    count: {
      type: Number,
      default: 3,
    },
    active: {
      type: Number,
      default: 1,
    },
    activeColor: {
      type: String,
      default: "red",
    },
    defaultColor: {
      type: String,
      default: "green",
    },
  },
};
</script>

<style lang="scss">
.lg-steps {
  display: flex;
  position: relative;
  text-align: center;
  justify-content: space-between;
  .lg-sep {
    height: 30px;
    width: 30px;
    border-radius: 15px;
    border: 1px solid #ccc;
    line-height: 30px;
    z-index: 2;
    background: #fff;
    &.step-active{
        color:red;
        border-color:red;
    }
  }
  .lg-steps-line {
    position: absolute;
    top: 50%;
    height: 1px;
    width: 100%;
    background: #ccc;
    z-index: 1;
  }
}
</style>